export default option => {
  let {
    data,
  } = option;
  let dataStep = {};
  for (let dialogRef in data) {
    if (data.hasOwnProperty(dialogRef) && /^dialog/.test(dialogRef)) {
      data[dialogRef] = {
        size: 'small',
        ref: dialogRef,
        visible: false,
        ...data[dialogRef],
      };
    }
  }
  option.data = {
    ...option.data,
    ...dataStep,
  };
};
